<%@ page import="java.util.ArrayList" %>
<%@ page import="bean.AdminBean" %>
<%@ page import="dao.AdminDao" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <title>修改用户界面</title>
    <style>
        .center {
            margin-top: 50px;
            margin-left: 600px;
        }
        .cancel{
            position: absolute;
            left: 808px;
            top: 340px;
            text-decoration: none;
            color: #767676;
            border: 1px solid #2c2c2c;
            background-color: #efefef;
            padding: 0 10px;
        }
    </style>
</head>
<body>
<div class="center">
    <%
        int aid = Integer.parseInt(request.getParameter("aid"));
        AdminBean all = null;
        all = new AdminDao().get_AidInfo(aid);
    %>
    <h1 style="margin-left: 60px">修改用户界面</h1>
    <form action=updateUserServlet method="post">
        <table border=1>
            <tr>
                <th>用户id</th>
                <td><input readonly name=aid value=<%=all.getAid()%>></td>
            </tr>
            <tr>
                <th>用户名</th>
                <td><input name=username value=<%=all.getUsername()%>></td>
            </tr>
            <tr>
                <th>姓名</th>
                <td><input name=name value=<%=all.getName()%>></td>
            </tr>
            <tr>
                <th>密码</th>
                <td><input name=password value=<%=all.getPassword()%>></td>
            </tr>
            <tr>
                <th>email</th>
                <td><input name=email value=<%=all.getEmail()%>></td>
            </tr>
            <tr>
                <th>phone</th>
                <td><input name=phone value=<%=all.getPhone()%>></td>
            </tr>
            <tr>
                <th>最大可借阅数量</th>
                <td><input name=lendNum value=<%=all.getLend_num()%>></td>
            </tr>
            <tr>
                <th>最长可借阅时间</th>
                <td><input name=maxNum value=<%=all.getMax_num()%>></td>
            </tr>
            <tr>
                <td colspan=2><input type=submit value=修改用户 style="margin-left: 55px"></td>
                <a href="readerManage.jsp" class="cancel">取消</a>
            </tr>

        </table>
    </form>
</div>
</body>
</html>
